package com.example.util.redis;

public class RedisKeys {

	private final static String sessionKey = "shrio-user-sessionKey-";// 用戶shirosession前缀
	private final static String tokenAdminKey = "shrio-sysuser-tokenKey-";// 用戶对应tokenKey前缀
	private final static String adminKey = "shrio-sysuser-Key-";// 用戶对应session前缀
	private final static String tokenUserKey = "shrio-commonuser-tokenKey-";// 用戶对应tokenKey前缀
	private final static String userKey = "shrio-commonuser-Key-";// 用戶对应session前缀

	/**
	 * 构建用户sessionKey
	 * 
	 * @param value
	 * @return
	 */
	public static String getShiroSessionKey(String value) {

		return sessionKey + value;
	}

	/**
	 * 系统用户token值
	 * 
	 * @param value
	 * @return
	 */
	public static String getShiroSysUserTokenKey(String value) {

		return tokenAdminKey + value;
	}

	/**
	 * 构建系统用户对应sessionKey
	 * 
	 * @param value
	 * @return
	 */
	public static String getShiroSysUserKey(String value) {

		return adminKey + value;
	}

	public static String getShiroCommonUserTokenKey(String value) {

		return tokenUserKey + value;
	}

	/**
	 * 构建系统用户对应sessionKey
	 * 
	 * @param value
	 * @return
	 */
	public static String getShiroCommonUserKey(String value) {

		return userKey + value;
	}

}
